<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>

    <template id="temp">
        <h2>{{message}}</h2>
        <h2 v-text="message"></h2>

        <h4>{{count}}</h4>
        <h4 v-once>{{count}}</h4>
        <button @click="add">+</button>

        <div v-html="isHtml"></div>

        <div v-pre>{{message}}</div>
    </template>

    <script src="../js/vue.js"></script>
    <script>
        const App = {
            template:"#temp",
            data() {
                return {
                    message: 'Hello World！！！',
                    count: 99,
                    isHtml: `<span style="color:orange;background:pink;">哈哈哈哈哈</span>`
                }
            },
            methods: {
                add() {
                    this.count++;
                }
            },
        }

        Vue.createApp(App).mount("#app")
    </script>
</body>
</html>